package com.example.ktsb.controller

import com.example.ktsb.entity.User
import com.example.ktsb.service.UserService2
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("user")
class UserController2(private val userService2: UserService2) {

    @GetMapping("findUser")
    fun findUser(): List<User>? {
        return userService2.findUser()
    }

}